package com.wy.authority.service.impl;

import com.wy.authority.entity.Dept;
import com.wy.authority.mapper.DeptMapper;
import com.wy.authority.service.DeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author 忘忧
 * @Date Created in 2021/1/11 15:06
 * @Description:实现接口
 */
@Service
public class DeptServiceImpl implements DeptService {
    @Autowired
    private DeptMapper deptMapper;

    @Override
    public List<Dept> find(int page) {
        return deptMapper.find(page);
    }

    @Override
    public List<Dept> finds(Dept dept) {
        return deptMapper.finds(dept);
    }

    @Override
    public int insert(Dept dept) {
        return deptMapper.insert(dept);
    }

    @Override
    public int update(Dept dept) {
        return deptMapper.update(dept);
    }

    @Override
    public int delete(int dept_id) {
        return deptMapper.delete(dept_id);
    }

    @Override
    public List<Dept> find1() {
        return deptMapper.find1();
    }

    @Override
    public List<Dept> find2() {
        return deptMapper.find2();
    }

    @Override
    public List<Dept> find3(Integer deptid) {
        return deptMapper.find3(deptid);
    }
}
